package demo.day03

// 35 Kotlin语言的先决条件函数
fun main() {
    var value: String? = null
    // Exception in thread "main" java.lang.IllegalStateException: Required value was null.
//    checkNotNull(value)
    // Exception in thread "main" java.lang.IllegalArgumentException: Required value was null.
    requireNotNull(value)
}